Skip to content

fix: BED-10539 define icons for generic GitHub node kinds - #110

Merged
jaredcatkinson merged 2 commits into
mainfrom
fix/BED-10539-generic-kind-icons
Nov 20, 2026
Merged

jaredcatkinson merged 2 commits into
mainfrom
fix/BED-10539-generic-kind-icons

Conversation

@jaredcatkinson

@jaredcatkinson jaredcatkinson commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Generic GitHub node kinds lacked icon metadata needed by schema consumers and documentation asset generation. Define icons and colors for GH_Runner, GH_RunnerGroup, GH_Secret, GH_Variable, and GH_IdentityProvider, reusing the corresponding concrete-kind icon choices.

Add the already-emitted GH_Role secondary kind to the schema with its role icon and description page. All generic kinds remain non-display kinds, existing relationship definitions are unchanged, and the extension schema version is bumped from v1.5.0 to v1.5.1.

Validation: both description coverage tests pass; schema JSON parses, node kind names are unique, all node kinds have icon/color metadata, generic display flags and relationship definitions are preserved, and git diff --check passes.

The missing PNG assets still need to be generated or added in bloodhound-docs; this PR supplies schema metadata rather than those image files.

Ticket: BED-10539

Summary by CodeRabbit

  • New Features

    • Added support for the GH_Role entity across enterprise, organization, team, and repository roles.
    • Updated branch, organization role, and environment relationships to include identity-assumption links.
    • Added visual styling for secrets, variables, runner groups, runners, and identity providers.
    • Updated the GitHub extension schema to version 1.5.1.
  • Documentation

    • Added documentation describing the role entity, its properties, and its relationships.

Also include GH_CanAssumeIdentity in the outbound traversable accordion queries for GH_OrgRole, GH_Branch, and GH_Environment; GH_Repository already included it. All four accordions were verified to include the relationship exactly once.

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The extension schema advances from v1.5.0 to v1.5.1. It adds GH_Role metadata, visual metadata for five existing node kinds, and GH_CanAssumeIdentity to three outbound traversal queries. New documentation describes GH_Role and its properties.

Changes

GitHub schema updates

Layer / File(s) Summary
Role kind and node metadata
extension/schema.json, descriptions/nodes/GH_Role.md
The schema version changes to v1.5.1. The schema adds GH_Role as a non-display kind and assigns icons and colors to GH_Role, GH_Secret, GH_Variable, GH_RunnerGroup, GH_Runner, and GH_IdentityProvider. The documentation lists GH_Role properties and includes a diagram.
Outbound traversal relationships
extension/schema.json
The GH_Branch, GH_OrgRole, and GH_Environment outbound traversal queries add GH_CanAssumeIdentity.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Possibly related PRs

Suggested reviewers: eladshamir

Merge Risk: Minimal · up to 13d39

This adds display metadata and a role node definition to the GitHub schema and extends three Explore traversal links. Worst case, an accordion shows no rows. No actionable merge-blocking risk remains.

Architecture risk: Low · up to 13d39

The change affects 2 systems.

Changed systems: descriptions, extension

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — descriptions (service) was modified; 1 changed file maps to changed impact.
  • observed — extension (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in descriptions/nodes/GH_Role.md: Added GH_Role documentation describing the node as a generic label for GitHub enterprise, organization, team, and repository role nodes; listing its five properties and their descriptions; and showing the node in a Mermaid diagram.
  • observed — Modified behavior in extension/schema.json: The schema version changes from v1.5.0 to v1.5.1.
  • observed — Modified behavior in extension/schema.json: The GH_Branch outbound traversal query adds GH_CanAssumeIdentity to the previously listed runner-use and environment-deployment relationships.
  • observed — Modified behavior in extension/schema.json: The GH_OrgRole outbound traversal query adds GH_CanAssumeIdentity to the previously listed base-role, custom-role-write, and secret-related relationships.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix: BED-10539 define icons for generic GitHub node kinds" matches the main change. The PR adds icon and color metadata to the generic GitHub node kinds (GH_Runner, GH_RunnerGroup, GH_Secre…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "fix: BED-10539 define icons for generic GitHub node kinds" matches the main change. The PR adds icon and color metadata to the generic GitHub node kinds (GH_Runner, GH_RunnerGroup, GH_Secret, GH_Variable, GH_IdentityProvider) in the extension schema, and the schema version moves from v1.5.0 to v1.5.1. The title is concise and specific. It omits the GH_Role schema addition and the outbound traversal change, but those are secondary to the main change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit reads the schema by moonlight,
GH_Role joins the labels in sight.
Branches and roles gain a path,
Environments join that math.
Icons glow across the graph,
Then the rabbit takes a nap.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4778439e-a436-4854-a02f-ad2c36611c0c
Commits

Reviewing files that changed from the base of the PR and between 2566a37 and 13d39f6.

Files selected for processing: 1

  • extension/schema.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@jaredcatkinson
jaredcatkinson merged commit a665299 into main Nov 20, 2026
4 checks passed
@jaredcatkinson
jaredcatkinson deleted the fix/BED-10539-generic-kind-icons branch November 20, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants